package com.lili.collection.restful.config;

import lombok.Data;

import java.io.Serializable;

/**
 * 抽象数据源配置
 *
 * @author: lili
 * @since: 2023/2/23 20:08
 */
@Data
public abstract class BaseDsConfig implements IDsConfig, Serializable {
    /**
     * 版本号
     */
    private String bbh;

    /**
     * 数据源类型
     */
    private String dsType;

    /**
     * 默认等待超时时间20S
     */
    private Integer timeOut = 5;

    @Override
    public void init() {
        this.bbh = "1";
    }

    @Override
    public String getVersion() {
        return this.bbh;
    }
}
